package com.syx.judge.Controller;

import com.syx.api.Model.DTO.JudgeSubmitDTO;
import com.syx.api.Model.VO.UserQuestionResultVO;
import com.syx.commoncore.Model.Result;
import com.syx.judge.Service.IJudgeService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/judge")
public class JudgeController {

    @Resource
    IJudgeService iJudgeService;


    @PostMapping("/doJudgeJavaCode")
    Result<UserQuestionResultVO> doJudgeJavaCode(@RequestBody JudgeSubmitDTO judgeSubmitDTO){
        return iJudgeService.doJudgeJavaCode(judgeSubmitDTO);
    }

}
